﻿#pragma once
#include "ViewModelBase.g.h"


namespace winrt::NovelReader::implementation
{
	struct ViewModelBase : ViewModelBaseT<ViewModelBase>
	{
		ViewModelBase() = default;

		void RaisePropertyChanged(hstring const& propertyName);
		winrt::event_token PropertyChanged(winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler const& handler);
		void PropertyChanged(winrt::event_token const& token) noexcept;

	private:
		winrt::event<winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler> m_propertyChanged; 
	};
}
namespace winrt::NovelReader::factory_implementation
{
	struct ViewModelBase : ViewModelBaseT<ViewModelBase, implementation::ViewModelBase>
	{
	};
}
